/******************************************************************************
*File   : debug.h
*Author : Lan Hu
*Email	: Hi_Blue@126.com
*Notes	:
*Licence: 
*Created: 2009-09-30
*******************************************************************************/

#ifndef _MYLIB_DEBUG_H__INCLUDE_20090930_
#define _MYLIB_DEBUG_H__INCLUDE_20090930_

#include "public.h"
#include <errno.h>
#include <stdlib.h>

//extern int errno;

M_BEGIN_NAMESPACE(mylib)

#define M_DEBUG 1


#if(M_DEBUG)

#ifndef _DEBUG
#define _DEBUG
#endif//_DEBUG

#define M_DEBUG_TRACE	1

#define M_DEBUG_THREAD	1

#define M_DEBUG_MEMORY	1

#else//M_DEBUG

#define M_DEBUG_TRACE	0

#define M_DEBUG_THREAD	0

#define M_DEBUG_MEMORY	0

#endif//M_DEBUG

#if(M_DEBUG_TRACE)

	#define M_TREACTOFILE 0

#endif



M_END_NAMESPACE(mylib)

#endif//_MYLIB_DEBUG_H__INCLUDE_20090930_
